package com.gdust.gkyx.client.search;

import com.gdust.gkyx.model.search.SkuEs;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * ClassName: SkuFeignClient
 * Package: com.gdust.gkyx.client.search
 * Description:
 *
 * @Author syun
 * @Create 2025/1/28 10:39
 * @Version 1.0
 */
@FeignClient("service-search")
public interface SkuFeignClient {

    /**
     * //更新商品热度
     * @param skuId
     * @return
     */
    @GetMapping("/api/search/sku/inner/incrHotScore/{skuId}")
    public Boolean incrHotScore(@PathVariable("skuId") Long skuId);

    //获取爆款商品
    @GetMapping("/api/search/sku/inner/findHotSkuList")
    public List<SkuEs> findHotSkuList();
}
